package moonstruckdrops.dto;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;

@PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true")
public class EntryDto implements Serializable{
	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	Long id;
	@Persistent
	Date Date;
	@Persistent
	String Title;
	@Persistent
	Text Entry;
	
	public EntryDto() {
	}
	
	public EntryDto(Date Date,String Title,Text Entry){
		this.Date=Date;
		this.Title=Title;
		this.Entry=Entry;
	}
	
	public EntryDto(Long id,Date Date,String Title,Text Entry){
		this.id=id;
		this.Date=Date;
		this.Title=Title;
		this.Entry=Entry;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDate() {
		return Date;
	}

	public void setDate(Date date) {
		Date = date;
	}

	public String getTitle() {
		return Title;
	}

	public void setTitle(String title) {
		Title = title;
	}

	public Text getEntry() {
		return Entry;
	}

	public void setEntry(Text entry) {
		Entry = entry;
	}	
}